<?php
session_start();
ob_start();
if (!isset($_SESSION['loggedin'])) {

    header('Location: login.php');
}
include 'connection.php';
?>
<?php $id = $_GET['ID'];
include 'index.php';
$produc_id_protected = htmlspecialchars($id);
$query = "delete from products where id =$produc_id_protected";
if (mysql_query($query)) {

    echo '<div id="body-wrapper">
		<div id="main-content"> <div class="notification success png_bg">
				<a href="" class="close"><img src="resources/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
				<div>
				This Product Deleted Is Done ..
				</div>
			</div>';
}
else {
    echo '<div id="body-wrapper">


		<div id="main-content"> <div class="notification error png_bg">
				<a href="" class="close"><img src="resources/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
				<div>
					This Product Deleted Is Not Done ..
				</div>
			</div>';

}
?>